<!DOCTYPE html>
<html>
    <head>
        <title>字符串反转 - reverseString的实现</title>
        <script src="../../src/string/reverseString.js"></script>
    </head>
    <body>
        <script>
            console.log(reverseString('hello')) // olleh
            console.log(palindrome('lol')) // true
            console.log(truncate('hello world', 5)) // hello...
        </script>
    </body>
</html>